<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link type="text/css" href="/${initParam.context_root }/etc/css/jquery-ui.min.css" rel="stylesheet">
<script type="text/javascript" src="/${initParam.context_root }/etc/js/jquery.js"></script>
<script type="text/javascript" src="/${initParam.context_root }/etc/js/jquery-ui.min.js"></script>
<link type="text/css"	href="/${initParam.context_root }/etc/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript"	src="/${initParam.context_root }/etc/js/bootstrap.min.js"></script>
</head>
<script>
function chk_out(){
	var flag = confirm("회원님의 정보는 모두 삭제됩니다. 정말 탈퇴하시겠습니까?");
	if(flag){
		window.close();
		return true;
	}else{
		return false;		
	}
}
</script>


<form action="/${initParam.context_root }/customer/login/removeCustomer.do" method="post" style="height:100px;" onsubmit="return chk_out()">
	<input type="hidden" name="custId" value="${sessionScope.login_info.custId }">
	<input type="hidden" name="name" value="${sessionScope.login_info.name }">
	<input type="hidden" name="email" value="${sessionScope.login_info.email }">
	<table>
		<tr align="center">
			<td>탈퇴사유</td>
				<td>
					<select id="outReason" name="outReason" size="1">
						<option>이유</option>
						<option>사이트 이용에 불편을 느껴서</option>
						<option>사이트의 정보가 부족해서</option>
						<option>더이상 이용의 이유가 없어서</option>
						<option>타사이트를 이용하기 위해서</option>
					</select>
				<button type="submit" class="btn btn-danger btn-xs">탈퇴</button>
			</td>
		</tr>
	</table>

</form>

</html>